package com.backend.demo1.models;

public class Message {
    private String message;
    private String name;

    // 无参构造函数
    public Message() {
    }

    // 带参数的构造函数
    public Message(String message, String name) {
        this.message = message;
        this.name = name;
    }

    // Getter 和 Setter 方法
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}